package com.chefu.order.pojo;

/**
 * 提供订单状态枚举对象
 */
public enum OrderStatusEnum {
    INIT(1, "初始化，待服务"),
    IN_SERVICE(2, "服务中"),
    SERVICE_COMPLETED(3, "服务完成"),
    CONFIRMED(4, "已确认，待评价"),
    CLOSED(5, "已关闭"),
    RATED(6, "已评价，交易结束")
    ;

    private Integer value;
    private String msg;

    OrderStatusEnum(Integer value, String msg) {
        this.value = value;
        this.msg = msg;
    }

    public Integer value(){
        return this.value;
    }

    public String msg(){
        return msg;
    }
}